from myro import *
from GoForward import *
from Zigzag import *

initialize("COM40")

def main():
    while 1:
        direction=goForward()
        if direction==1:
            zigzagRight()
        elif direction==-1:
            zigzagLeft()
        
main()